package com.yami.shop.admin.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yami.shop.bean.model.ShopMember;
import com.yami.shop.bean.pt.YxCtjl;
import com.yami.shop.bean.pt.YxPtsp;
import com.yami.shop.common.util.PageParam;
import com.yami.shop.service.IYxCtjlService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/yxCtjl")
public class YxCtjlController {
    @Autowired
    private IYxCtjlService yxCtjlService;

    /**
     * 查询参团记录列表
     */
    @GetMapping("/getCtjlList")
    public ResponseEntity<IPage<YxCtjl>> getCtjlList(PageParam<YxCtjl> page){
        YxCtjl yxCtjl = new YxCtjl();
        IPage<YxCtjl> yxCtjlIPage = yxCtjlService.selectYxCtjlList(page,yxCtjl);
        return ResponseEntity.ok(yxCtjlIPage);
    }




}
